// Copyright 2018 The Go Authors. All rights reserved.
// Use of this session code is governed by a BSD-style
// license that can be found in the LICENSE file.

// this file contains protocol<->span converters

package protocol

import (
	"mi/internal/xpath"
)

func URIFromSpanURI(uri xpath.URI) DocumentURI {
	return DocumentURI(uri)
}

func URIFromPath(path string) DocumentURI {
	return URIFromSpanURI(xpath.URIFromPath(path))
}

func (u DocumentURI) SpanURI() xpath.URI {
	return xpath.URIFromURI(string(u))
}
